package cn.tedu.teat;

import org.junit.Test;

import java.util.Arrays;

public class TestStudent {
    public static void main(String[] args) {
        getStu();
    }



    static public void getStu(){
        Student s1=new Student("张三",'男',3);
        Student s2=new Student("李四",'女',4);
        Student s3=new Student("王五",'男',5);
        Student s4=new Student("赵六",'女',6);
        Student[] a=new Student[4];
        a[0]=s1;
        a[1]=s2;
        a[2]=s3;
        a[3]=s4;

        System.out.println(Arrays.toString(a));
        for(int i=0;i<4;i++){
            System.out.print(a[i].getName());
            System.out.print(a[i].getAge());
            System.out.print(a[i].getGender());
            System.out.println(" ");
        }
    }
}
